Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Sending a mail with LotusScript
Feedback Type: Problem
Product Area: Notes Client
Technical Area: Customization
Platform: Windows
Release: 8.5.2
Reproducible: Always

I have a mailin database and when someone sends to it, a message is sent back with a link to the document. Here is some of the code:

Set maildoc = db.Createdocument
recipient = doc.sendto
mailDoc.form = "Memo"
mailsubject = doc.subject(0)
mailDoc.sendTo = recipient
mailDoc.Subject = mailsubject
Principal = doc.from(0)
maildoc.principal = principal
Set rtitem = New NotesRichTextItem(mailDoc, "Body" )
rtstyle.NotesColor = COLOR_BLACK
Call rtitem.AppendStyle(rtstyle)
Call rtitem.Appendtext(doc.body)
rtstyle.NotesColor = COLOR_RED
Call rtitem.AppendStyle(rtstyle)
Call rtitem.AppendText("To see entire message with attachments, click this link -> ")
Call rtitem.AppendDocLink( doc, doc.subject(0))
Call mailDoc.Send(False)

The problem lies with mailDoc.Subject = mailsubject
If I use this then the email get sent to the mailin database and not the value in mailDoc.sendTo = recipient
If I use maildoc.subject = "Thanks!" then the email goes to the proper recipient.
Any ideas as to why altering the subject will get the mail sent to a different person????


Feedback number WEBB8F7JNC created by ~Joseph Quethipilyings on 03/22/2011

Status: Open
Comments:

Sending a mail with LotusScript (~Joseph Quethip... 22.Mar.11)
. . Run Debugger (~Lex Pregerokon... 22.Mar.11)
. . . . Running debugger (~Joseph Quethip... 23.Mar.11)
. . . . . . Value in Sendto field (~Joseph Quethip... 23.Mar.11)
. . mailaddress (~Sarah Prekimar... 22.Mar.11)
. . . . Mailaddress (~Joseph Quethip... 23.Mar.11)
. . All fixed (~Joseph Quethip... 23.Mar.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS